package com.etc.ser.homework;

import java.io.IOException;
import java.util.concurrent.Semaphore;

/**
 * @author: knowno
 * @create: 2024-09-12 09:15
 * @Version 1.0
 **/
public class TestMain {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        //菜单

        //用户输入

        //调用UserDao完成基本业务 操作

        UserService userService = new UserService();

        User user = new User("1001","admin","admin123456");

        System.out.println(userService.login(user));

//        User user = new User("1001","admin","admin123456");
//        boolean flag = userService.register(user);
//        System.out.println(flag);
//        System.out.println("************************");
//        User user2 = new User("1002","admin","121212121");
//        flag = userService.register(user);
//        System.out.println(flag);
//        System.out.println("***********login*************");
//
//        flag = userService.login(user);
//        System.out.println(flag);
//        System.out.println("***********login*************");
//
//        flag = userService.login(user2);
//        System.out.println(flag);


    }
}
